package com.jio.util;

import java.util.UUID;

public class UUIDTest {
    public static void main(String[] args) {
        //UUID是根据各种条件生成的32位不重复的字符串序列
        //可以用来代替int主键
        UUID uuid = UUID.randomUUID();//随机生成UUID对象
        System.out.println(uuid.toString());
        System.out.println(uuid.toString().replace("-",""));
    }
}
